package com.wish.wishsystem_management.controller;


import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.wish.wishsystem_management.api.SysLog;
import com.wish.wishsystem_management.entity.SysRole;
import com.wish.wishsystem_management.entity.SysUser;
import com.wish.wishsystem_management.service.*;
import dto.systemDto.SysUserDto;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils;
import org.apache.shiro.crypto.hash.Sha256Hash;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import vo.ResultEntity;

import java.security.Principal;
import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 系统用户 前端控制器
 * </p>
 *
 * @author zhaiwj
 * @since 2021-03-22
 */
@RestController
@RequestMapping("/system/user")
@Slf4j
public class UserController {


    /**
     * 返回用户信息
     *
     * @return
     */
    @RequestMapping("/info")
    public ResultEntity getUserInfo(Principal member) {
        log.info("^^^^^^^^^^^^^^^*********************************8=" + member + "@@@@");

        return ResultEntity.ok("200", "操作成功", member);
    }



}

